CC=gcc
TARGET=sort
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c,%.o,$(SRC))
FLAG = -std=c99 -w

$(TARGET):$(SRC)
	$(CC)  $(FLAG) -o $@ $^

.PHONY:clean
clean:
	rm -rf $(TARGET) $(OBJ)
